﻿namespace Standards.Data
{
    using System.Collections.Generic;
    using Qi.Data;

    public class RoleDto : Entity
    {
        private IList<UserDto> users;

        private IList<PermissionDto> permissions;

        public string Name { get; set; }

        public IList<UserDto> Users 
        {
            get
            {
                return this.users ?? (this.users = new List<UserDto>());
            }

            set
            {
                this.users = value;
            }
        }

        public IList<PermissionDto> Permissions
        {
            get
            {
                return this.permissions ?? (this.permissions = new List<PermissionDto>());
            }

            set
            {
                this.permissions = value;
            }
        }
    }
}